package com.silent.browser;

import android.util.Log;
import android.app.Application;
import dalvik.system.VMRuntime;
import com.baidu.zeus.*;

public class Browser extends Application { 

    private final static String LOGTAG = "browser";

    /**
     * Specifies a heap utilization ratio that works better
     * for the browser than the default ratio does.
     */
    private final static float TARGET_HEAP_UTILIZATION = 0.75f;

    public Browser() {
    }

    public void onCreate() {
        
        Log.v(LOGTAG, "Browser.onCreate: this=" + this);

        
        // Fix heap utilization for better heap size characteristics.
        VMRuntime.getRuntime().setTargetHeapUtilization(
                TARGET_HEAP_UTILIZATION);
        // create CookieSyncManager with current Context
        CookieSyncManager.createInstance(this);
        //CookieManager.getInstance().setAcceptCookie(false);
        // remove all expired cookies
        CookieManager.getInstance().removeExpiredCookie();
    }

}

